FROM py-base

WORKDIR /zhenxun_bot

COPY pip.conf /root/.pip/pip.conf
COPY requirements.txt /zhenxun_bot/requirements.txt

RUN set -ex \
    && pip install --upgrade pip \
    && pip install --ignore-installed -r requirements.txt \
    && rm -rf /var/cache/apt/* && rm -rf /tmp/*

CMD [ "python3", "bot.py" ]
